/**
    Note lai xem component nay dung lam gi nhe!
 */
import QtQuick 2.0

Item {
    id: item1
    width: 200
    height: 100

    property string magazineName: "Zing News"
    property string categoryName: "Tong hop"
    property int fontsize : 12
    Row{
        anchors.verticalCenter: parent.verticalCenter
        Column {
            id: column1
            anchors.fill: item1

            Row {
                id: row1
                anchors.top: text1.bottom
                anchors.topMargin: 0
                anchors.right: item1.right
                anchors.bottom: item1.bottom
                anchors.left: item1.left

                Text {
                    id: text2
                    text: categoryName
                    font.pixelSize: fontsize
                }

                Image {
                    id: image1
                    width: fontsize
                    height: fontsize
                    anchors.bottom: item1.bottom
                    anchors.bottomMargin: 0
                    anchors.top: item1.top
                    anchors.topMargin: 0
                    anchors.right: item1.right
                    anchors.rightMargin: 0
                    //source: "qrc:/qtquickplugin/images/template_image.png"
                }
            }

            Text {
                id: text1
                text: magazineName
                anchors.right: item1.right
                anchors.rightMargin: 0
                anchors.left: item1.left
                anchors.leftMargin: 0
                anchors.top: item1.top
                anchors.topMargin: 0
                font.pixelSize: 12
            }
        }
    }
}
